package com.party.core.service.mall;

import com.party.core.model.mall.MallCategory;
import com.party.core.model.mall.MallCategoryOutput;
import com.party.core.service.IBaseService;

import java.util.List;

/**
 * 商城商品服务接口
 * Created by wei.li
 *
 * @date 2017/8/15 0015
 * @time 16:22
 */

public interface IMallCategoryService extends IBaseService<MallCategory> {
    List<MallCategory> selectCategory();

    List<MallCategory> getByParentId(String parentId);

    /**
     * 根据商品id获取已分配的分类
     *
     * @param goodsId 商品id
     * @return
     */
    List<MallCategory> getGoodsCategory(String goodsId);

    List<MallCategory> findByName(String name, String parentId);

    List<MallCategoryOutput> getAll();
}
